package com.example.model.ums;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * 角色菜单关联表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class RoleMenu {

    private String id;
    /** 角色Id*/
    @NotBlank(message = "角色id不能为空")
    private String roleId;

    /** 菜单id */
    @NotBlank(message = "菜单id不能为空")
    private String menuId;
}
